package com.group3.pojo.receive;

import com.group3.domain.PunchRecord;
import com.group3.pojo.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Past;
import java.util.Date;

/**
 * PunchReceive
 *
 * @author HY
 * 2021/06/20 16:42
 **/

@Data
@ApiModel("查询门禁打卡记录参数类")
public class PunchReceive extends Page {

    @ApiModelProperty(value = "开始时间")
    @Past(message = "必须为过去的一个日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    @Past(message = "必须为过去的一个日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    @ApiModelProperty(value = "学生学号")
    private String studenId;

    @ApiModelProperty(value = "学生姓名")
    private String studentName;

}
